/**
 * Created by Xiaoming on 2017/9/2.
 */
angular.module('module.order', [
        'ngCookies',
        'service.order',
        'service.shopmenu',
        'service.auth',
        'service.shop',
        'service.goods',
        'filter.order'
    ])
    .config(['$stateProvider',
        function ($stateProvider) {
            $stateProvider
            //商户信息
                .state('shopinfo', {
                    url: '/shopinfo/:shopid',
                    templateUrl: service_viewurl + '/service/shopinfo.html',
                    controller: 'ShopInfoController',
                    controllerAs: 'vm'
                })
                //历史订单
                .state('orderhistory', {
                    params: {
                        succese: 0
                    },
                    url: '/orderhistory/:shopid/:appid/:deskid',
                    templateUrl: service_viewurl + '/service/orderhistory.html',
                    controller: 'OrderHistoryController',
                    controllerAs: 'vm'
                })
                //订单详细信息
                .state('orderdetail', {
                    url: '/orderdetail/:orderid/:shopid/:appid/:deskid',
                    templateUrl: service_viewurl + '/service/orderdetail.html',
                    controller: 'OrderDetailController',
                    controllerAs: 'vm'
                })
        }])